<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">

  <resistance>
    <strength>10</strength>
    <screen_edge_strength>20</screen_edge_strength>
  </resistance>

  <focus>
    <focusNew>yes</focusNew>
    <followMouse>no</followMouse>
    <focusLast>yes</focusLast>
    <underMouse>no</underMouse>
    <focusDelay>0</focusDelay>
    <raiseOnFocus>no</raiseOnFocus>
  </focus>

  <placement>
    <policy>Smart</policy>
    <center>yes</center>
    <monitor>Mouse</monitor>
    <primaryMonitor>Mouse</primaryMonitor>
  </placement>

  <theme>
    <name>thicc</name>

    <!--
      N: window icon
      L: window label (AKA title).
      I: iconify
      M: maximize
      C: close
      S: shade (roll up/down)
      D: omnipresent (on all desktops).
    -->
    <titleLayout></titleLayout>

    <cornerRadius>0</cornerRadius>
    <keepBorder>yes</keepBorder>
    <animateIconify>no</animateIconify>
  </theme>

  <desktops>
    <number>9</number>
    <firstdesk>1</firstdesk>
    <names>
      <!-- <name>desktop 1</name> -->
    </names>
    <popupTime>0</popupTime>
  </desktops>

  <resize>
  <drawContents>yes</drawContents>
  <popupShow>Nonpixel</popupShow>
  <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  <popupPosition>Center</popupPosition>
  <!-- 'Center', 'Top', or 'Fixed' -->
  <popupFixedPosition>
    <!-- these are used if popupPosition is set to 'Fixed' -->
    <x>10</x>
    <!-- positive number for distance from left edge, negative number for
     distance from right edge, or 'Center' -->
    <y>10</y>
    <!-- positive number for distance from top edge, negative number for
     distance from bottom edge, or 'Center' -->
  </popupFixedPosition>
  </resize>
  <!-- You can reserve a portion of your screen where windows will not cover when
   they are maximized, or when they are initially placed.
   Many programs reserve space automatically, but you can use this in other
   cases. -->
  <margins>
  <top>0</top>
  <bottom>0</bottom>
  <left>0</left>
  <right>0</right>
  </margins>
  <dock>
  <position>TopLeft</position>
  <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  <floatingX>0</floatingX>
  <floatingY>0</floatingY>
  <noStrut>no</noStrut>
  <stacking>Above</stacking>
  <!-- 'Above', 'Normal', or 'Below' -->
  <direction>Vertical</direction>
  <!-- 'Vertical' or 'Horizontal' -->
  <autoHide>no</autoHide>
  <hideDelay>300</hideDelay>
  <!-- in milliseconds (1000 = 1 second) -->
  <showDelay>300</showDelay>
  <!-- in milliseconds (1000 = 1 second) -->
  <moveButton>Middle</moveButton>
  <!-- 'Left', 'Middle', 'Right' -->
  </dock>

  <keyboard>
    <!-- goto workspace -->
    <keybind key="W-1">
      <action name="GoToDesktop">
      <to>1</to>
      </action>
    </keybind>
    <keybind key="W-2">
      <action name="GoToDesktop">
      <to>2</to>
      </action>
    </keybind>
    <keybind key="W-3">
      <action name="GoToDesktop">
      <to>3</to>
      </action>
    </keybind>
    <keybind key="W-4">
      <action name="GoToDesktop">
      <to>4</to>
      </action>
    </keybind>
    <keybind key="W-5">
      <action name="GoToDesktop">
      <to>5</to>
      </action>
    </keybind>
    <keybind key="W-6">
      <action name="GoToDesktop">
      <to>6</to>
      </action>
    </keybind>
    <keybind key="W-7">
      <action name="GoToDesktop">
      <to>7</to>
      </action>
    </keybind>
    <keybind key="W-8">
      <action name="GoToDesktop">
      <to>8</to>
      </action>
    </keybind>
    <keybind key="W-9">
      <action name="GoToDesktop">
      <to>9</to>
      </action>
    </keybind>
    <keybind key="W-0">
      <action name="GoToDesktop">
      <to>0</to>
      </action>
    </keybind>

    <!-- sendto workspace -->
    <keybind key="W-S-1">
      <action name="SendToDesktop">
      <to>1</to>
      <wrap>no</wrap>
      <follow>no</follow>
      </action>
    </keybind>
    <keybind key="W-S-2">
      <action name="SendToDesktop">
      <to>2</to>
      <wrap>no</wrap>
      <follow>no</follow>
      </action>
    </keybind>
    <keybind key="W-S-3">
      <action name="SendToDesktop">
      <to>3</to>
      <wrap>no</wrap>
      <follow>no</follow>
      </action>
    </keybind>
    <keybind key="W-S-4">
      <action name="SendToDesktop">
      <to>4</to>
      <wrap>no</wrap>
      <follow>no</follow>
      </action>
    </keybind>
    <keybind key="W-S-5">
      <action name="SendToDesktop">
      <to>5</to>
      <wrap>no</wrap>
      <follow>no</follow>
      </action>
    </keybind>
    <keybind key="W-S-6">
      <action name="SendToDesktop">
      <to>6</to>
      <wrap>no</wrap>
      <follow>no</follow>
      </action>
    </keybind>
    <keybind key="W-S-7">
      <action name="SendToDesktop">
      <to>7</to>
      <wrap>no</wrap>
      <follow>no</follow>
      </action>
    </keybind>
    <keybind key="W-S-8">
      <action name="SendToDesktop">
      <to>8</to>
      <wrap>no</wrap>
      <follow>no</follow>
      </action>
    </keybind>
    <keybind key="W-S-9">
      <action name="SendToDesktop">
      <to>9</to>
      <wrap>no</wrap>
      <follow>no</follow>
      </action>
    </keybind>
    <keybind key="W-S-0">
      <action name="SendToDesktop">
      <to>0</to>
      <wrap>no</wrap>
      <follow>no</follow>
      </action>
    </keybind>

    <!-- manage windows -->
    <keybind key="A-space">
      <action name="Execute">
        <command>rofi -m 0 -show run</command>
      </action>
    </keybind>
    <keybind key="W-S-Q">
      <action name="Close"/>
    </keybind>
    <keybind key="W-space">
      <action name="Raise"/>
      <action name="ToggleMaximize"/>
    </keybind>
    <keybind key="W-m">
      <action name="ShowMenu"/>
    </keybind>

    <!-- screenshots -->
    <keybind key="S-Print">
      <!-- of current window -->
      <action name="Execute">
        <command>screenshot-window</command>
      </action>
    </keybind>
    <keybind key="Print">
      <!-- of area -->
      <action name="Execute">
        <command>screenshot-area</command>
      </action>
    </keybind>
    <keybind key="W-Print">
      <!-- color picker -->
      <action name="Execute">
        <command>color-picker</command>
      </action>
    </keybind>
  </keyboard>

  <mouse>
    <dragThreshold>1</dragThreshold>
    <!-- number of pixels the mouse must move before a drag begins -->
    <doubleClickTime>500</doubleClickTime>
    <!-- in milliseconds (1000 = 1 second) -->
    <screenEdgeWarpTime>0</screenEdgeWarpTime>
    <!-- Time before changing desktops when the pointer touches the edge of the
       screen while moving a window, in milliseconds (1000 = 1 second).
       Set this to 0 to disable warping -->
    <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
    <!-- Set this to TRUE to move the mouse pointer across the desktop when
       switching due to hitting the edge of the screen -->
    <context name="Frame">
      <mousebind button="A-Left" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      </mousebind>
      <mousebind button="A-Left" action="Click">
      <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Left" action="Drag">
      <action name="Move"/>
      </mousebind>
      <mousebind button="A-Right" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Right" action="Drag">
      <action name="Resize"/>
      </mousebind>
      <mousebind button="A-Middle" action="Press">
      <action name="Lower"/>
      <action name="FocusToBottom"/>
      <action name="Unfocus"/>
      </mousebind>
      <mousebind button="A-Up" action="Click">
      <action name="GoToDesktop">
        <to>previous</to>
      </action>
      </mousebind>
      <mousebind button="A-Down" action="Click">
      <action name="GoToDesktop">
        <to>next</to>
      </action>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
      <action name="GoToDesktop">
        <to>previous</to>
      </action>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
      <action name="GoToDesktop">
        <to>next</to>
      </action>
      </mousebind>
      <mousebind button="A-S-Up" action="Click">
      <action name="SendToDesktop">
        <to>previous</to>
      </action>
      </mousebind>
      <mousebind button="A-S-Down" action="Click">
      <action name="SendToDesktop">
        <to>next</to>
      </action>
      </mousebind>
    </context>
    <context name="Titlebar">
      <mousebind button="Left" action="Drag">
      <action name="Move"/>
      </mousebind>
      <mousebind button="Left" action="DoubleClick">
      <action name="ToggleMaximize"/>
      <action name="Unshade"/>
      </mousebind>
      <mousebind button="Up" action="Click">
      <action name="if">
        <shaded>no</shaded>
        <then>
        <action name="Shade"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
        <action name="Lower"/>
        </then>
      </action>
      </mousebind>
      <mousebind button="Down" action="Click">
      <action name="if">
        <shaded>yes</shaded>
        <then>
        <action name="Unshade"/>
        <action name="Raise"/>
        </then>
      </action>
      </mousebind>
    </context>
    <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
      <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <!--<action name="Raise"/>-->
      <!--<action name="Unshade"/>-->
      </mousebind>
      <mousebind button="Middle" action="Press">
      <action name="Lower"/>
      <action name="FocusToBottom"/>
      <action name="Unfocus"/>
      </mousebind>
      <!--
      <mousebind button="Right" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="ShowMenu">
        <menu>client-menu</menu>
      </action>
      </mousebind>
    -->
    </context>
    <context name="Top">
      <mousebind button="Left" action="Drag">
      <action name="Resize">
        <edge>top</edge>
      </action>
      </mousebind>
    </context>
    <context name="Left">
      <mousebind button="Left" action="Drag">
      <action name="Resize">
        <edge>left</edge>
      </action>
      </mousebind>
    </context>
    <context name="Right">
      <mousebind button="Left" action="Drag">
      <action name="Resize">
        <edge>right</edge>
      </action>
      </mousebind>
    </context>
    <context name="Bottom">
      <mousebind button="Left" action="Drag">
      <action name="Resize">
        <edge>bottom</edge>
      </action>
      </mousebind>
      <mousebind button="Right" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="ShowMenu">
        <menu>client-menu</menu>
      </action>
      </mousebind>
    </context>
    <context name="TRCorner BRCorner TLCorner BLCorner">
      <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
      <action name="Resize"/>
      </mousebind>
    </context>
    <context name="Client">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Focus"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
      </mousebind>
    </context>
    <context name="Icon">
      <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="Unshade"/>
      <action name="ShowMenu">
        <menu>client-menu</menu>
      </action>
      </mousebind>
      <mousebind button="Right" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="ShowMenu">
        <menu>client-menu</menu>
      </action>
      </mousebind>
    </context>
    <context name="AllDesktops">
      <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
      <action name="ToggleOmnipresent"/>
      </mousebind>
    </context>
    <context name="Shade">
      <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Click">
      <action name="ToggleShade"/>
      </mousebind>
    </context>
    <context name="Iconify">
      <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Click">
      <action name="Iconify"/>
      </mousebind>
    </context>
    <context name="Maximize">
      <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="Unshade"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="Unshade"/>
      </mousebind>
      <mousebind button="Right" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
      <action name="ToggleMaximize"/>
      </mousebind>
      <mousebind button="Middle" action="Click">
      <action name="ToggleMaximize">
        <direction>vertical</direction>
      </action>
      </mousebind>
      <mousebind button="Right" action="Click">
      <action name="ToggleMaximize">
        <direction>horizontal</direction>
      </action>
      </mousebind>
    </context>
    <context name="Close">
      <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
      <action name="Close"/>
      </mousebind>
    </context>
    <context name="Desktop">
      <mousebind button="Up" action="Click">
      <action name="GoToDesktop">
        <to>previous</to>
      </action>
      </mousebind>
      <mousebind button="Down" action="Click">
      <action name="GoToDesktop">
        <to>next</to>
      </action>
      </mousebind>
      <mousebind button="A-Up" action="Click">
      <action name="GoToDesktop">
        <to>previous</to>
      </action>
      </mousebind>
      <mousebind button="A-Down" action="Click">
      <action name="GoToDesktop">
        <to>next</to>
      </action>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
      <action name="GoToDesktop">
        <to>previous</to>
      </action>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
      <action name="GoToDesktop">
        <to>next</to>
      </action>
      </mousebind>
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>
  </mouse>

  <applications>
    <application name="*">
      <decor>no</decor>
    </application>

    <application name="feh">
      <desktop>all</desktop>
    </application>

    <application name="kitten1">
      <desktop>all</desktop>

      <position force="yes">
        <monitor>1</monitor>
        <x>80</x>
        <y>-420</y>
      </position>

      <size>
        <width>670</width>
        <height>298</height>
      </size>
    </application>

    <application name="kitten2">
      <desktop>all</desktop>

      <position force="yes">
        <monitor>1</monitor>
        <x>140</x>
        <y>-80</y>
      </position>

      <size>
        <width>610</width>
        <height>298</height>
      </size>
    </application>


    <!-- monitor L changable -->

    <application name="sublime_text">
      <desktop>1</desktop>

      <position force="yes">
        <monitor>1</monitor>
        <x>-80</x>
        <y>80</y>
      </position>

      <size>
        <width>1048</width>
        <height>920</height>
      </size>
    </application>

    <application name="atom">
      <desktop>1</desktop>

      <position force="yes">
        <monitor>1</monitor>
        <x>-80</x>
        <y>80</y>
      </position>

      <size>
        <width>1048</width>
        <height>920</height>
      </size>
    </application>

    <application name="discord">
      <desktop>2</desktop>

      <position force="yes">
        <monitor>1</monitor>
        <x>-80</x>
        <y>80</y>
      </position>

      <size>
        <width>1048</width>
        <height>920</height>
      </size>
    </application>


    <!-- monitor R changeable -->

    <application class="Firefox Developer Edition">
      <desktop>1</desktop>

      <position force="yes">
        <monitor>2</monitor>
        <x>80</x>
        <y>80</y>
      </position>

      <size>
        <width>1840</width>
        <height>920</height>
      </size>
    </application>

  </applications>
</openbox_config>
